﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using Subtle.Domain.Models;
using AutoMapper;

namespace Subtle.Areas.Administration.ViewModels
{
	/// <summary>
	/// Media Add View Model
	/// </summary>
	public class MediaAddViewModel
	{
		public System.Web.HttpPostedFileBase MediaFile { get; set; }
		public string MediaUrl { get; set; }

		/// <summary>
		/// Get Media
		/// </summary>
		/// <returns></returns>
		public Media GetMedia()
		{
			return Mapper.Map<MediaAddViewModel, Media>(this);
		}
	}
}